<ul class="nav nav-pills pull-right">
    <li data-bind="visible: !$root.isInEditMode()">
        <div class="btn-group btn-group-sm op-btn-form-edit">
            <a href="#" class="btn btn-primary" title="Prendre le verrou pour éditer" data-bind="click: lock"><i class="mi mi-edition-31"></i> Editer</a>
        </div>
    </li>
    <li data-bind="visible: $root.isInEditMode()">
        <div class="btn-group btn-group-sm op-btn-form-edit">
            <a href="#" class="btn btn-primary" data-bind="click: save"><i class="mi mi-programing-9"></i> Sauvegarder</a>
        </div>
    </li>
    <li data-bind="visible: $root.lockedBy() && currentUser !== $root.lockedBy()">
        <div class="btn-group btn-group-sm op-btn-form-edit">
            <a href="#" class="btn btn-danger" disabled><i class="mi mi-edition-55"></i> En edition par <span data-bind="text: $root.lockedBy()"></span></a>
        </div>
    </li>
</ul>